package jsyf.oa.entity.business;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Maqiuqiu on 2018/6/12.
 */
@Entity
@Table(name = "t_apl_business_trust_trial_attach", schema = "oa", catalog = "")
public class TrustTrialAttachEntity extends BaseEntity {

   private String mainId;
   private String trustAttachName;
   private String trustAttachUrl;

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getTrustAttachName() {
        return trustAttachName;
    }

    public void setTrustAttachName(String trustAttachName) {
        this.trustAttachName = trustAttachName;
    }

    public String getTrustAttachUrl() {
        return trustAttachUrl;
    }

    public void setTrustAttachUrl(String trustAttachUrl) {
        this.trustAttachUrl = trustAttachUrl;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("MAIN_ID", getMainId());
        obj.put("TRUST_ATTACH_NAME", getTrustAttachName());
        obj.put("TRUST_ATTACH_URL", getTrustAttachUrl());

        return obj;
    }

    @Override
    public String getTableName() {
        return "t_apl_business_trust_trial_attach";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("MAIN_ID", "mainId");
        obj.put("TRUST_ATTACH_NAME", "trustAttachName");
        obj.put("TRUST_ATTACH_URL", "trustAttachUrl");
        return obj;
    }
}
